﻿using System;
using System.Net.DnsToolkit.Packet;

namespace System.Net.DnsToolkit.Serializer {
    /// <summary>
    /// Write Question into object
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IQuestionWriter<T> {

        /// <summary>
        /// Writes a question into destination object
        /// </summary>
        /// <param name="message"></param>
        /// <param name="destination"></param>
        void Write(T destination, IQuestion question, ICompressionContext compression);
    }
}
